import request from '@/utils/request'

//获取处置列表
export function GetAssetDisposeList(params) {
  return request({
    url: '/Interface/GetAssetDisposeList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//添加处置
export function AddAssetsDispose(params) {
  return request({
    url: '/Interface/SaveAssetDispose',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//查询处置详细
export function getAssetsDisposeDetail(params) {
  return request({
    url: '/Interface/GetAssetDisposeSubList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//获取可处置的资产列表(用于添加)
export function getAssetsCanDisposed(params) {
  return request({
    url: '/Interface/GetNotDisposed',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//处置作废
export function DisposeAssetsRevoke(params) {
  return request({
    url: '/Interface/SaveDisposeClose',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
